package com.agranee.timesheet.service;

import java.util.List;

import com.agranee.timesheet.daoable.Countryable;
import com.agranee.timesheet.model.Country;
import com.agranee.timesheet.serviceable.CountryServiceable;

public class CountryService implements CountryServiceable {
     
	Countryable countryDao;
	
	@Override
	public void addCountry(Country country) {
		getCountryDao().addCountry(country);
		
		
	}

	public Countryable getCountryDao() {
		return countryDao;
	}

	public void setCountryDao(Countryable countryDao) {
		this.countryDao = countryDao;
	}

	@Override
	public Country getCountryById(int id) {
		 return getCountryDao().getCountryById(id);
	}

	@Override
	public List<Country> getAllCountryId() {
		return getCountryDao().getAllCountryId();
	}
	
	
	public List<Country> getAllCountry(){
		return getCountryDao().getAllCountry();
	}
	
	

}
